# Site Access Request
Configures the access request settings on a SharePoint site by processing rows from an Excel file. Settings are read from a named SiteCfg configuration entry.
Filename pattern: filename must contain SiteAccessRequest (case-insensitive).
Example: 20240115 SiteAccessRequest configure.xlsx
# Columns
| Name | Required | Description |
|---|---|---|
| ClientCode | No | Client code used together with MatterCode to identify the matter. |
| MatterCode | Conditional | Matter code used to resolve the site URL from the matter list. Required when Url is not provided. |
| Url / SiteUrl | Conditional | Server-relative URL of the SharePoint site. Required when MatterCode is not provided. |
| SiteSet / SiteCfg | Yes | Name of the SiteCfg configuration entry that defines the access request settings to apply. |
| Properties | No | Any additional columns are collected as properties and passed as template substitution tokens. |
Either Url or MatterCode must be provided. SiteSet is always required.
# Behavior
The handler resolves the target site (from Url or MatterCode), looks up the named SiteCfg, and applies the access request settings using SPSite.UpdateSiteAccessRequestSettings. If the named SiteSet is not found in the configuration, the row fails.
When MatterCode is used, the matter's properties are appended to the token substitution properties before the SiteCfg is resolved.
# Related links
- Site Collection handler — create or configure site collections